package com.szrt.javaweb.ioc.demo02.entity;

public class EmployeeEntity {
	
	
	private String employeeName;
	
	
	



	public String getEmployeeName() {
		return employeeName;
	}

	public void setEmployeeName(String employeeName) {
		this.employeeName = employeeName;
	}

	public EmployeeEntity() {
		System.out.println("调用EmployeeEntity的构造方法...");
	}

	private Car car;

	public Car getCar() {
		return car;
	}

	public void setCar(Car car) {
		this.car = car;
	}
	
	public void drive(){
		System.out.println(getEmployeeName()+"驾驶"+car.getBrand()+"品牌的汽车  飞奔而过.....");
	}

}
